Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Conversation

@H37kouya
Copy link
Member

@H37kouya H37kouya commented Mar 6, 2022

草庵みたいなこーど。全然かけてないです 😢

{
return view('project.index', []);
$user = Auth::user();
$allProjects = $this->getAllProjectsUseCase->invoke($user->id);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpstan] reported by reviewdog 🐶
Cannot access property $id on App\Models\User|null.


final class GetProjectUseCase
{
public function invoke(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpstan] reported by reviewdog 🐶
Method App\UseCases\Project\GetProjectUseCase::invoke() has no return type specified.

): Project {
$project = Project::find($projectId);

return $project;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[phpstan] reported by reviewdog 🐶
Method App\UseCases\Project\GetProjectUseCase::invoke() should return App\Models\Project but returns App\Models\Project|null.

@usuyuki
Copy link
Member

usuyuki commented Mar 6, 2022

ありがとうございます!!!

@usuyuki
Copy link
Member

usuyuki commented Mar 6, 2022

Usecaseの参考としt!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants